﻿/*
 * Author：WQ
 * Date：2012/12/25 11:19:49  
 * Copyright：2012-2013 
 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IPMessenger.Common.Model
{
    [Serializable]
    public class Messenger
    {
        public Messenger()
        { }

        public Messenger(string hostName, string iP)
        {
            this.hostName = hostName;
            this.iP = iP;
            port = 0;
        }

        public Messenger(string hostName, string iP, int port)
        {
            this.hostName = hostName;
            this.iP = iP;
            this.port = port;
        }

        private string hostName;
        /// <summary>
        /// 主机名称 
        /// </summary>
        public string HostName
        {
            get { return hostName; }
            set { hostName = value; }
        }

        private string iP;
        /// <summary>
        /// 主机IP地址
        /// </summary>
        public string IP
        {
            get { return iP; }
            set { iP = value; }
        }

        private int port;
        /// <summary>
        /// 端口
        /// </summary>
        public int Port
        {
            get { return port; }
            set { port = value; }
        }
    }
}
